<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Board game project: MOVE Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Board game project
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A Board game software</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">MOVE Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A <a class="el" href="struct_m_o_v_e.html" title="A MOVE struct.">MOVE</a> struct.  
 <a href="struct_m_o_v_e.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_game_8h_source.html">Game.h</a>&gt;</code></p>

<p><a href="struct_m_o_v_e-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a776960a8a4185a0d8b45045f6cdde8fe"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_m_o_v_e.html#a776960a8a4185a0d8b45045f6cdde8fe">MOVE</a> (int fx, int fy, int tx, int ty)</td></tr>
<tr class="memdesc:a776960a8a4185a0d8b45045f6cdde8fe"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="struct_m_o_v_e.html" title="A MOVE struct.">MOVE</a> constructor.  <a href="#a776960a8a4185a0d8b45045f6cdde8fe"></a><br/></td></tr>
<tr class="memitem:ab595f623b86dcd849125b2fad9d231bc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_m_o_v_e.html#ab595f623b86dcd849125b2fad9d231bc">operator==</a> (const <a class="el" href="struct_m_o_v_e.html">MOVE</a> &amp;rhs)</td></tr>
<tr class="memdesc:ab595f623b86dcd849125b2fad9d231bc"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="struct_m_o_v_e.html" title="A MOVE struct.">MOVE</a> comparison operator.  <a href="#ab595f623b86dcd849125b2fad9d231bc"></a><br/></td></tr>
<tr class="memitem:a1301b46feff346eec702e267bf1c45e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_m_o_v_e.html#a1301b46feff346eec702e267bf1c45e9">operator=</a> (const <a class="el" href="struct_m_o_v_e.html">MOVE</a> &amp;move)</td></tr>
<tr class="memdesc:a1301b46feff346eec702e267bf1c45e9"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="struct_m_o_v_e.html" title="A MOVE struct.">MOVE</a> assignment operator.  <a href="#a1301b46feff346eec702e267bf1c45e9"></a><br/></td></tr>
<tr class="memitem:abf2c678c711548c44f513dc7b9cdb1e7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf2c678c711548c44f513dc7b9cdb1e7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>print</b> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa9c7f8de90b187df2ad9a66873997819"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9c7f8de90b187df2ad9a66873997819"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>fromX</b></td></tr>
<tr class="memitem:aa005b0adafc82ca577093ebe272f41c2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa005b0adafc82ca577093ebe272f41c2"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>fromY</b></td></tr>
<tr class="memitem:a54b86a4ecb26c34e2d486c880faeabcb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54b86a4ecb26c34e2d486c880faeabcb"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>toX</b></td></tr>
<tr class="memitem:af35ce1e3f60b510c6f3c30f6d2a3296c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af35ce1e3f60b510c6f3c30f6d2a3296c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>toY</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A struct that encapsulates a move. A <a class="el" href="struct_m_o_v_e.html" title="A MOVE struct.">MOVE</a> contains 4 ints; fromX, fromY, toX, toY. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a776960a8a4185a0d8b45045f6cdde8fe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MOVE::MOVE </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>fy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>tx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>ty</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructs a move with 4 integers. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fx,fy</td><td>Source coordinate </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">tx,ty</td><td>Destination coordinate </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a1301b46feff346eec702e267bf1c45e9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MOVE::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_m_o_v_e.html">MOVE</a> &amp;&#160;</td>
          <td class="paramname"><em>move</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Assigns a <a class="el" href="struct_m_o_v_e.html" title="A MOVE struct.">MOVE</a>. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">move</td><td>The <a class="el" href="struct_m_o_v_e.html" title="A MOVE struct.">MOVE</a> to assign. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab595f623b86dcd849125b2fad9d231bc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool MOVE::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_m_o_v_e.html">MOVE</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Compares two MOVEs. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rhs</td><td>Right-hand side <a class="el" href="struct_m_o_v_e.html" title="A MOVE struct.">MOVE</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>True if all 4 integers are same, else false. </dd></dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/<a class="el" href="_game_8h_source.html">Game.h</a></li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Sat May 12 2012 03:23:28 for Board game project by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
